class FilterOption {
    List<OptionItem> data;
    List<OptionItem> maps;

    FilterOption({this.data, this.maps});

    factory FilterOption.fromJson(Map<String, dynamic> json) {
        return FilterOption(
            data: json['data'] != null ? (json['data'] as List).map((i) => OptionItem.fromJson(i)).toList() : null,
            maps: json['maps'] != null ? (json['maps'] as List).map((i) => OptionItem.fromJson(i)).toList() : null,
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        if (this.data != null) {
            data['data'] = this.data.map((v) => v.toJson()).toList();
        }
        if (this.maps != null) {
            data['maps'] = this.maps.map((v) => v.toJson()).toList();
        }
        return data;
    }
}


class OptionItem {
    String name;
    String values;

    OptionItem({this.name, this.values});

    factory OptionItem.fromJson(Map<String, dynamic> json) {
        return OptionItem(
            name: json['name'], 
            values: json['values'], 
        );
    }

    Map<String, dynamic> toJson() {
        final Map<String, dynamic> data = new Map<String, dynamic>();
        data['name'] = this.name;
        data['values'] = this.values;
        return data;
    }
}